var express = require('express');
var router = express.Router();
let posts = require("../controller/posts");

router.post('/add',posts.addPost);

router.post('/addimg',posts.addimg);

router.get('/findall/:user_id',posts.findall);

router.get('/findone',posts.findone);

router.put('/like',posts.like);

router.get("/search",posts.search);

module.exports = router;